﻿using System;
namespace NeroConnect.Network
{

	/// <summary>
	/// Provides access to the request and response objects used by the IListener
	/// class. This class cannot be inherited.
	/// </summary>
	public interface IListenerContext : IDisposable
	{
		/// <summary>
		/// Gets the IListenerRequest that represents a client's request
		/// for a resource.
		/// </summary>
		/// <value>An IListenerRequest object that represents the client request.</value>
		IListenerRequest Request { get; }
		/// <summary>
		/// Gets the IListenerResponse object that will be sent to the
		/// client in response to the client's request.
		/// </summary>
		/// <value>An IListenerResponse object used to send a response back to the client.</value>
		IListenerResponse Response { get; }
	}
}
